014 exercise example
好吧,在上一个视频中我们已经看到了 set B 和 B set B 说明。
All right in the last video we have seen the set B and B set B instructions.
这些用于设置或是指示字段而不是单床。
These are used to set or is the field of instructions instead of a single bed.
它可以设置一个字段。
It can set a field.
好的。
OK.
那么让我们继续看下一条指令。
So let's move ahead and see the next instruction.
所以现在我们已经设定了意义并重置了主导地位。
So now we have set meaning and reset dominant.
这设置和重置要简单得多,但如果对该指令有意义,它会附加一个显性关键字。
This is much simpler to set and reset but it has a keyword attached dominant if it has a meaning to this instruction.
让我们看看那是什么。
Let's see what is that.
第一个已设置重置。
The first one is set reset.
触发器或者你也可以叫它有触发器。
Flip flop or you can also call it has a flip flop.
它通常是该指令集重置的通用词。
It's commonly the common word for this instruction set reset as are.
现在沙特人已经称霸了。
Now the Saudis already said dominant.
他所说的占主导地位在这里意味着他说的占主导地位仅在一种情况下,当你的两个输入都为真时。
He said dominant it means here that he said dominant set only in one case when you had both inputs are true.
因此,它表示如果设置信号和复位信号都为真,则零边缘处的值将为零。
So it says if the set if the set and reset signal are both true the value at edges that are zero will be zero.
好的。
OK.
为什么。
Why.
因为它是博丁的复位主导,这是事实,如果您关闭输出,相反的输出将被关闭,它将主导复位功能的输出。
Because it is reset dominance of Bodin which is how true that is it will dominate the output to the function of reset if you turn off the outputs the opposite would be off.
所以这就是置位复位触发器,这里可复位占主导地位。
So this is set reset flip flop here resettable dominant.
因此,如果您设置为一或为零,则操作是相同的,选项将是一和一半。
So the operation is SAME LIKE if you have set as one or is it a zero option would be one and half have.
他说两者都有高有低。
And he said both are high or low.
这是复位占主导地位的。
This is reset dominant.
当然,如果您检查其他类型,它只是说占主导地位,如果两个输入都为真,则将案例设置为占主导地位。
And of course if you check the other type it just said dominant this is having the case set to dominate if both inputs are true.
所以这里唯一的区别是,当鲍登是真的时,所说的将占主导地位。
So here the only difference is when Bowden was true the said will dominate.
如果您在这里看到块指令,那么它就是位于底部的块指令,它控制着输出。
And if you see block instruction here it's as are the one which just at the bottom is dominating the output.
所以你可以检查一下这个。
So you can check check at this.
无聊将主导输出。
The boredom will dominate the output.
此处已重置。
This is reset here.
在这里它被设置或者它前面有一个 1。
And here it's set or where it is having a 1 in front of that.
这就是将占主导地位的人。
This is the one that will dominate.
所以它不会在S R 和R S 集中占据主导地位。
So it will not dominate be so dominant in in S R and R S set will dominate.
所以这是一个指令。
So this is an instruction.
让我们看一个可以使用此设置重置的示例。
And let's see an example where we can use this set reset.
因此,我们有一个逻辑正确的逻辑来锁存 modder Q 0.0 输入。
So we have a logic right to the logic to latch modder Q 0.0 input.
I 0.0 并包括两个紧急开关。
I 0.0 and include two emergency switches.
所以,如果你看到这个图,我们拿起一个指针,我们就有了一个开始,但这就是我的开始。
So if you see this diagram and we take a pointer we have one start but and this is my start.
但这将在这里启动我的马达。
But this is going to start my motor here.
好的。
OK.
而且你必须做紧急开关。
And you have do emergency switch.
其作用是启动电机。
Its function is to start the motor.
因此,您必须按下任何一个输入,电机应该停止其中任何一个,或者如果两者都按下更多,则应该停止。
So you have to press any of this input the motor should stop any of these or if both are pressed more should stop.
好的,这就是操作,停止按钮应该启动。
OK this is the operation and the stop button should start.
那么在这种情况下您将使用哪种触发器。
So in this case which Flip-Flop you will use.
所以这里我们有一个例子,我们使用触发器作为我们的原因。
So here we have an example here we have used as our Flip-Flop as our Why.
由于紧急情况下紧急开关通常用于强调和条件,并且您无法知道主宰紧急开关,因此这些紧急开关具有更高的优先级。
Because emergency situations emergency switches are generally used for emphasis and conditions and you cannot you know dominate emergency switches these are having a higher priority.
所以我们需要更高优先级的重置。
So we need a higher priority of reset.
那么在这种情况下。
So in that case.
我们的触发器是因为哈利在这里说主导输出。
Our flip flop because here Harry said dominant the output.
但现在在重置时我们有两个输入,但都是有效的。
But now here at reset we have two inputs but both are ency.
好的,你必须知道这里我们使用了 and 和门以及输入处的气泡。
OK so you must know that here we have used and and gate along with a bubble at the input.
好的,板上有两个气泡,这些气泡被与并赋予触发器的重置类型集。
OK so you have two bubbles in board and these are anded and given to the reset type set of your Flip-Flop.
那么这里发生了什么。
So what happens here.
请注意,这是两个新西兰人。
Notice that these are two N.Z.
开关。
switches.
好的,如果没有按下开关,则不会按下。
OK so if the switch is not pressed this is not pressed.
这个0.1和0.2在没有按OK的时候是1。
This 0.1 and 0.2 are one when it is not pressed OK.
当按钮被按下时。
When the button is pressed.
所以这不是这次紧急情况下不存在的。
So this is not this is not present for this emergency.
当按下按钮时,斜率为零,并且 this 将为零。
When the button is pressed the slope is zero and this will be zero.
这些都可以指点一下。
These to point to.
好的。
OK.
那么会发生什么。
So what happens.
最初这些是一个。
Initially these are one.
所以如果我在这里使用这些或一个。
So if I use these or one here.
这些就是这里的一个。
These are one here.
因此,在气泡之后,这将调用输入,该斜率为零。
So after bubble this will invoke the input this slope is zero.
好的。
OK.
如果两者都为零,则所有逻辑输出将为零,并且这将为零。
If both are zero the all logic output will be zero and this will be zero.
因此,如果门未按下,则所有内容都会重置。
So all put a lot reset if doors are not pressed.
好吧,这就是我告诉你的情况,当我们不按任何按钮时什么也没有发生。
OK this is the situation I'm telling you when nothing happened when we don't press any buttons.
现在我们来看第一个案例。
Now let's take the first case.
当您按下“开始”按钮时,“确定”我将尝试在此处使用 Razor。
When you press the Start button OK I'll take it try to use the Razor here.
好的。
OK.
现在,当我们按下开始按钮时会发生什么。
Now when we pressed the start button what will happen.
所以这会被压。
It so this will be pressed.
好的。
OK.
所以这里的开始就是有一个S,就是这个。
So here's start would be having an S is this one.
好的。
OK.
据说我的输出和我的电机将运行,因为它们没有按下,这里为零。
Which was said my output and my motor will be running as these are not press this is zero here.
已经设定了这么多,这将被发布。
So much of it be set and this will be released.
这将保持设置状态,因为它是设置复位触发器。
This will remain set because it's a set reset Flip-Flop.
好的。
OK.
现在假设您的紧急新闻一期按这一期。
Now suppose your press emergency one issue press this one.
这将为零。
This will be zero.
20% 就是零。
20 percent would be zero.
起泡后。
After bubble.
这个一和这个没有被媒体报道,所以这是一个关于它为零的事情。
The one and this is not press so this was one after about what it was zero.
阿德拉德的文章之一普拉西多就是其中之一。
And the Adlard essays one Placido is one.
所以他说我们在这里发出嗡嗡声,所有这些都会关闭,马达也会关闭。
So he said well get a buzz here and all of that will be off the motor will be off.
如果紧急情况持续存在,我希望这是有道理的。
If emergencies persist I hope this makes sense.
好的,让我们在软件中尝试一下这个逻辑。
OK so let's try this logic in a word seemin software.
所以我们这里有这个狭窄的逻辑,我将把它下载到我的电脑上,我们可以通过监控它在我们的 Pusey 中看到结果。
So we have this narrow logic here and I'm going to download that to my PC and we can see the results in our Pusey by monitoring it.
这是一个有序的 Pernice 负载,您可以在此处查看。
So this is an ordered Pernice load and you can view here.
好的。
OK.
因此人们会看到运行模式和输入已关闭。
So people see that run mode and the inputs are off.
所以我要做的就是在这次演示中我们将开启紧急状态。
So what I'm going to do is for this demonstration we'll turn on the emergency.
好的。
OK.
正如我所说,紧急情况是 NCF,我们有两个紧急情况。
So as I said emergency is NCF and we have two emergency.
所以我现在手动打开它。
So I will manually turn it on now.
所以最初这些是一个,因为这是紧急情况,这是一个 NC。
So initially these are one because this is an emergency this is an NC.
所以你必须变焦死。
So you have to zoom died.
由于 NC,这两个都是正确的。
These two are true because of the NC.
好的,现在我们必须按此键将电机设置为第一个输入。
OK now we have to press this one to set the motor the first input.
好的。
OK.
所以我会按第一个输入,看看这是一个并且输出已设置。
So I would press first input and see that this is one and the output is set.
因此,我的输出正常,如果我关闭输入,它将保持打开状态。
So my output is on OK if I turn off my input it will remain on.
好的。
OK.
因为这是一个固定的时钟。
Because this is a set clock.
现在要在这里重置民意调查,我必须打开任何紧急状态。
Now to have a reset polls here I have to turn on any of the emergency.
看看这个就高了。
See this is high.
这是高的。
This is high.
所以这个值很高,你可以在这里看到绿灯,但它使它变低,因为现在这里有 00,这是一个内部启动。
So this is high you can see green light here but it make it low because it's an it's an inward to boot having 00 here right now.
如果我关闭任何输入,这将为零。
If I turn off any of this input this will be zero.
但将使之成为一,我们的逻辑就会有一个。
And but will make it one and our logic will have one.
这就是他的理由。
And that's what he reason.
因此,让我尝试一下第一个紧急情况,我按下第一个输入,您可以看到这是操作人员关闭的情况,并再次将紧急情况联邦化。
So let me just try that first emergency I press first input and you can see that this is of operatives off and federalize the emergency again.
操作意味着关闭。
Operative means off.
这是一个案例。
This is a case one.
现在让我们尝试一下这个输入和另一个输入。
Now let's try that and another input.
所以我将再次打开输入并驱动该锁存器。
So I will turn on the input again and motor this latch.
现在我将尝试另一个 NC 紧急情况,因此我也将尝试输入。
Now I will try another NC emergency so I will try input too.
所以当我运行这个时,奥格文再次响起。
So when I run this one Ogwyn again goes off.
所以你的紧急情况正在发挥作用。
So your emergency is working.
因此,这就是您可以使用的方式,您可以在块中设置重置Dohrmann,以将其视为紧急开关来启动和停用输出。
So this is how you can use you can you set reset Dohrmann in block for actuating and deactivating the output using considering as an emergency switch.
这就是我们在这里看到的内容,您知道我们的演示。
So this is what we saw you know our presentations here.
好的,但这就是我们在这里使用的触发器。
OK but this is the as our flip flop we have used here.
这就是本课中关于设置和重置函数的全部内容。
So this is all about set and reset functions in our in this lesson.
那么,让我们看看我们在本课中学到了什么,让我们预览一下,首先我们看到了用于锁定并只允许一位的设置重置指令。
So let's see what we did we learned this lesson let's preview that first we have seen the set reset instructions used to latch on and let only one bit.
OK,设置和复位位是一位。
OK the set and reset bit was for one bit.
然后我们已经看到了,他说字段指令用于 Lot,除非是多个位,因为我们在底部输入一个数字。
Then we have seen that said and he said Field instruction is used to Lot and unless multiple bits because we enter a number at the bottom.
好吧,那么你已经看到了。
OK then you've seen that.
相反,他说触发器输出将为真。
Instead he said Flip-Flop the output will be true.
如果两者都很高。
If both then were are high.
好的。
OK.
接受重置。
Incept reset.
等一下,这已重置。
Wait a second this is set reset.
这是不正确的,如果所有输入都为高,则正确的情况是这样。
This is this is incorrect here are what will be true if all the inputs are high.
不,这就是系统。
No this is the system.
手机在这里,因为这就是他所说的主流科学家做出的修正。
The phones here because this is it he said dominant scientists make a correction.
对于给您带来的不便,我们深表歉意,这将是错误的,但手机是什么?
Sorry for the inconvenience this will be false but what will be phones.
好的,所以你只需在这里进行更正,他说的最后一句话说触发器相反将是正确的,这将是正确的。
OK so you just make a correction here and the last thing that he said said Flip-Flop opposite will be true this would be true.
电路板输入为高电平,因为这里设置主导着复位。
The board inputs on high because here the set is dominating the reset.
所以这将是不正确的。
So this will be incorrect.
这里也是如此。
This will be true here.
好的。
OK.
因此,在您将在副本中获得的演示文稿中,我将进行更改。
So in the presentation which you will get in the copy I will make the changes.
感谢您的观看,如果您对此视频有任何疑问,可以发表评论。
So thank you for watching and if you have any doubt in this video you can put make comment.
我们会在下一个版本中见到你。
I'll see you in the next version.